import http from "@/api/axios";

export const getListApi = (data: invoicesManagement.SearchForm) => {
  return http({
    method: "post",
    url: "/export/biz/exportTemplate/invoicePage",
    data
  });
};

// 发票导出模版- 新增
export const addOrUpdateInvoiceApi = (formData: any) => {
  return http({
    method: "post",
    url: "/export/biz/exportTemplate/addOrUpdateInvoice",
    data: formData,
    headers: {
      "Content-type": "multipart/form-data"
    }
  });
};
// 发票导出模版- 删除
export const deleteInvoiceApi = (data: any) => {
  return http({
    method: "post",
    url: "/export/biz/exportTemplate/delete",
    data
  });
};
// 发票导出模版- 下载
export const downloadApi = (id: string) => {
  return http({
    method: "get",
    url: `/export/biz/exportTemplate/getUploadUrl/${id}`
  });
};
